package com.bgIntlgn.client.entity.manufacture.picLibrary;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

@Table(name = "pic_papaer_circulate_librarys", constrain = "")
public class PicPaperCirculateLibrary implements Bean {

	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('pic_papaer_circulate_librarys_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = "primary key ")
	private Long id;

	@Field(name = "pic_paper_id", type = "char(100)", constrain = "not null references papers(paper_id) on update cascade ")
	private String picPaperId;

	/**
	 * 表示图纸的位置<br>
	 */
	public enum Place {
		factory, department, employee
	}

	@Field(name = "place", type = "int", constrain = "")
	private Integer place;

	/**
	 * 数量, 正数为借入， 负数为归还给上级源.
	 */
	@Field(name = "quantity", type = "int", constrain = "")
	private Integer quantity;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPicPaperId() {
		return picPaperId;
	}

	public void setPicPaperId(String picPaperId) {
		this.picPaperId = picPaperId;
	}

	public Integer getPlace() {
		return this.place;
	}

	public void setPlace(Integer state) {
		this.place = state;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
}
